package com.eqs.enterprisequestionnaire.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@TableName("question")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Question {
    private Integer id;

    //@ManyToOne
    //@JoinColumn(name = "questionnaire_id")
    private Integer questionnaireId;

    private String type;
    private String content;
    //private String options;
    private Integer ordination;
    private Integer template;
    @TableField(exist = false)
    private List<Option> options;
    public  Integer getQuestionId(){
        return id;
    }
}
